<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: &lt;JCCallCallback&gt;协议 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="protocol_j_c_call_callback-p-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">&lt;JCCallCallback&gt;协议 参考<div class="ingroups"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html">一对一通话模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_j_c_call_callback_8h_source.html">JCCallCallback.h</a>&gt;</code></p>
<div class="dynheader">
类 &lt;JCCallCallback&gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="protocol_j_c_call_callback-p.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:a1ab9e15212ef163f7f8d3c009d05f2e9"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_call_callback-p.html#a1ab9e15212ef163f7f8d3c009d05f2e9">onCallItemAdd:</a></td></tr>
<tr class="separator:a1ab9e15212ef163f7f8d3c009d05f2e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e18348bea90de9e9fbfbb4d960d04be"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_call_callback-p.html#a0e18348bea90de9e9fbfbb4d960d04be">onCallItemRemove:reason:description:</a></td></tr>
<tr class="separator:a0e18348bea90de9e9fbfbb4d960d04be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c127c64f0f2742b37668c3626661604"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_call_callback-p.html#a7c127c64f0f2742b37668c3626661604">onCallItemUpdate:changeParam:</a></td></tr>
<tr class="separator:a7c127c64f0f2742b37668c3626661604"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c37cc6b1c2bbb33aad99ea06e4c74d5"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_call_callback-p.html#a9c37cc6b1c2bbb33aad99ea06e4c74d5">onMessageReceive:type:content:</a></td></tr>
<tr class="separator:a9c37cc6b1c2bbb33aad99ea06e4c74d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61754f5e134af2e0b465a40f9cf575fd"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_call_callback-p.html#a61754f5e134af2e0b465a40f9cf575fd">onMissedCallItem:</a></td></tr>
<tr class="separator:a61754f5e134af2e0b465a40f9cf575fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af12205b3e5ccaaaa32ae9eaec5228bb3"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_call_callback-p.html#af12205b3e5ccaaaa32ae9eaec5228bb3">onDtmfReceived:value:</a></td></tr>
<tr class="separator:af12205b3e5ccaaaa32ae9eaec5228bb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="interface_j_c_call.html">JCCall</a> 回调 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a1ab9e15212ef163f7f8d3c009d05f2e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ab9e15212ef163f7f8d3c009d05f2e9">&#9670;&nbsp;</a></span>onCallItemAdd:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onCallItemAdd: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_call_item.html">JCCallItem</a> *__nonnull)&#160;</td>
          <td class="paramname"><em>item</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>新增通话回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0e18348bea90de9e9fbfbb4d960d04be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e18348bea90de9e9fbfbb4d960d04be">&#9670;&nbsp;</a></span>onCallItemRemove:reason:description:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onCallItemRemove: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_call_item.html">JCCallItem</a> *__nonnull)&#160;</td>
          <td class="paramname"><em>item</em></td>
        </tr>
        <tr>
          <td class="paramkey">reason:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ga808dbcfe0aa04e3e5ebda7a4622e6b47">JCCallReason</a>)&#160;</td>
          <td class="paramname"><em>reason</em></td>
        </tr>
        <tr>
          <td class="paramkey">description:</td>
          <td></td>
          <td class="paramtype">(NSString *__nullable)&#160;</td>
          <td class="paramname"><em>description</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>移除通话回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
    <tr><td class="paramname">reason</td><td>通话结束原因，参见：<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ga808dbcfe0aa04e3e5ebda7a4622e6b47">通话结束原因</a> </td></tr>
    <tr><td class="paramname">description</td><td>通话结束原因的描述，只有被动挂断的时候，才会收到这个值，其他情况下则返回空字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7c127c64f0f2742b37668c3626661604"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c127c64f0f2742b37668c3626661604">&#9670;&nbsp;</a></span>onCallItemUpdate:changeParam:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onCallItemUpdate: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_call_item.html">JCCallItem</a> *__nonnull)&#160;</td>
          <td class="paramname"><em>item</em></td>
        </tr>
        <tr>
          <td class="paramkey">changeParam:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_call_change_param.html">JCCallChangeParam</a> *__nullable)&#160;</td>
          <td class="paramname"><em>changeParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>通话状态更新回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
    <tr><td class="paramname">changeParam</td><td><a class="el" href="interface_j_c_call_change_param.html">JCCallChangeParam</a> 更新标识对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af12205b3e5ccaaaa32ae9eaec5228bb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af12205b3e5ccaaaa32ae9eaec5228bb3">&#9670;&nbsp;</a></span>onDtmfReceived:value:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onDtmfReceived: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_call_item.html">JCCallItem</a> *_Nonnull)&#160;</td>
          <td class="paramname"><em>item</em></td>
        </tr>
        <tr>
          <td class="paramkey">value:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gabdc5348e5bd7d6146e66900e8f207677">JCCallDtmf</a>)&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>通话中收到DTMF回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
    <tr><td class="paramname">value</td><td><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gabdc5348e5bd7d6146e66900e8f207677">DTMF值</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9c37cc6b1c2bbb33aad99ea06e4c74d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c37cc6b1c2bbb33aad99ea06e4c74d5">&#9670;&nbsp;</a></span>onMessageReceive:type:content:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onMessageReceive: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_call_item.html">JCCallItem</a> *__nonnull)&#160;</td>
          <td class="paramname"><em>item</em></td>
        </tr>
        <tr>
          <td class="paramkey">type:</td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>type</em></td>
        </tr>
        <tr>
          <td class="paramkey">content:</td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>content</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>通话中收到消息的回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>消息类型，对应 <a class="el" href="interface_j_c_call.html#ac62efb5cb2a21913a78c706352ef2ee8">sendMessage</a> 方法中的 type 参数 </td></tr>
    <tr><td class="paramname">content</td><td>消息内容，对应 <a class="el" href="interface_j_c_call.html#ac62efb5cb2a21913a78c706352ef2ee8">sendMessage</a> 方法中的 content 参数 </td></tr>
    <tr><td class="paramname">item</td><td><a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a61754f5e134af2e0b465a40f9cf575fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61754f5e134af2e0b465a40f9cf575fd">&#9670;&nbsp;</a></span>onMissedCallItem:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onMissedCallItem: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_call_item.html">JCCallItem</a> *__nonnull)&#160;</td>
          <td class="paramname"><em>item</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>拉取未接来电的回调</p>
<p>有以下几种情况会收到此回调：</p><ul>
<li>用户A未登录，用户B呼叫用户A，用户A登录后收到此回调</li>
<li>用户A已登录，但没开启应用，用户A在开启应用重新登录后会收到此回调</li>
<li>已存在语音通话又收到了视频通话来电，此时会收到此回调</li>
<li>已存在视频通话又收到了语音或视频来电，此时会收到此回调</li>
<li>当前通话数量已达到最大通话数时又收到了语音或视频来电，此时会收到此回调 <dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="interface_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
  </table>
  </dd>
</dl>
</li>
</ul>

</div>
</div>
<hr/>该协议的文档由以下文件生成:<ul>
<li>JCSDKOC/JCSDKOC/JCCall/<a class="el" href="_j_c_call_callback_8h_source.html">JCCallCallback.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
